<%@ Page Language="C#" MasterPageFile="~/Demo.master" AutoEventWireup="true" 
    Inherits="SharpPieces.DemoApp.ExtendedDropDownListFunctionality" 
    CodeBehind="extendeddropdownlistfunctionality.aspx.cs" %>

<asp:Content ID="Content2" runat="Server" ContentPlaceHolderID="headPlaceHolder">
    <title>SharpPieces - ExtendedDropDownList Demo - Live Demo</title>
</asp:Content>
<asp:Content ID="Content3" runat="Server" ContentPlaceHolderID="descriptionPlaceholder">
    <h1>ExtendedDropDownList Demo</h1>
        
    <p>ExtendedDropDownList control 
    extends the functionality of the standard ASP NET DropDownList Control, providing support for the 
    select's OPTGROUP tag, which the DropDownList control doesn't know about. It also keeps the attributes 
    of the ListItem class in the viewstate, functionality that lacks in the DropDownList control. 
    ExtendedDropDownList control has also strong-type properties for the class name of the 
    ListItem (CssClass and GroupCssClass properties).</p>
</asp:Content>

<asp:Content ID="Content1" ContentPlaceHolderID="demoPlaceholder" Runat="Server">
    <asp:Button ID="btnPostback" Text="Do postback!" runat="server" /><br />
        ExtendedDropDownList populated from code-behind: <br />
        <piece:ExtendedDropDownList ID="ddl" runat="server">
        </piece:ExtendedDropDownList><br />
        <hr />
        ExtendedDropDownList populated from ASPX: <br />
        <piece:ExtendedDropDownList ID="ExtendedDropDownList1" runat="server">
            <ExtendedItems>
                <piece:ExtendedListItem GroupingText="Group 1" Text="My item" 
                Value="1" GroupingType="New" GroupID="myID"></piece:ExtendedListItem>
                <piece:ExtendedListItem Text="My item2" Value="2" 
                GroupingType="inherit"></piece:ExtendedListItem>
            </ExtendedItems>
        </piece:ExtendedDropDownList><br /><br />
       
       <asp:Label ID="lblSelGroup" runat="server"></asp:Label>
       
</asp:Content>

